home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / progtool / c / gcc / gpplib22.zoo / iotests / makefile.32 < prev    next >
Encoding:
Makefile  |  1994-02-12  |  1.5 KB  |  77 lines

  1. # Makefile for g++ library test files (32 bit int default)
  2.  
  3. GXX= cgcc
  4. CC= cgcc
  5. AR= car
  6. AS= $(CC)
  7.  
  8. # common subset of options; no int size or omit-frame-pointer:
  9. COMMONOPT = -O2 -fstrength-reduce # -m68020 -m68881
  10. COMMONFLAGS =
  11. COMMONDEFINES =
  12.  
  13. COPTS= $(COMMONOPT) $(COMMONFLAGS) $(COMMONDEFINES)  \
  14.        -DNDEBUG $(XFLAGS)
  15.  
  16. GXXOPTS= $(COMMONOPT) $(COMMONFLAGS) $(COMMONDEFINES)  \
  17.          $(XXFLAGS)
  18.  
  19. # Base options CC; includes int size but not omit-frame-pointer
  20. CFFLAGS = $(COPTS)
  21. GXXFFLAGS = $(GXXOPTS)
  22.  
  23. # normal CFLAGS including int size and omit-frame-pointer
  24. CFLAGS= $(CFFLAGS) -fomit-frame-pointer
  25. GXXFLAGS = $(GXXFFLAGS) -fomit-frame-pointer
  26.  
  27. # cflags for stuff that needs to be compiled with 32 bit ints
  28. CLFLAGS= $(CFLAGS)
  29. GXXLFLAGS = $(GXXFLAGS)
  30.  
  31. # flags to $(CC) when it runs the assembler only
  32. ASFLAGS= -c
  33.  
  34. # pre-processor flags
  35. PPFLAGS= -P -DNDEBUG
  36.  
  37. # ld flags
  38. LDFLAGS = -v -lpml -s -lg++
  39.  
  40. TEST= hounddog.ttp putbackdog.ttp tFile.ttp tfformat.ttp tiformat.ttp \
  41.       tiomanip.ttp tiomisc.ttp
  42.  
  43. OBJS = $(TEST:.ttp=.o)
  44. # the stuff to make
  45. ALL= $(TEST)
  46.  
  47. objects: $(OBJS)
  48. obj: $(OBJS)
  49.  
  50. # g++ files should have extension .cc
  51. # generated test files will have .ttp extn
  52.  
  53. .SUFFIXES: .ttp .cc
  54. .cc.o:
  55.     $(GXX) $(GXXFLAGS) -c  $<
  56.  
  57. .o.ttp:
  58.     $(GXX) -o $@ $< $(LDFLAGS)
  59.  
  60. all: $(ALL)
  61.  
  62.  
  63. clean:
  64.     rm -f *.o core
  65.  
  66. realclean: clean
  67.     rm -f $(ALL) core report
  68.  
  69. hounddog.ttp : hounddog.o
  70. putbackdog.ttp : putbackdog.o
  71. tFile.ttp : tFile.o
  72. tfformat.ttp : tfformat.o
  73. tiformat.ttp : tiformat.o
  74. tiomanip.ttp : tiomanip.o
  75. tiomisc.ttp: tiomisc.o
  76.  
  77.